home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format: Get the Most Out of Your Amiga / Amiga Format - Get the Most Out of Your Amiga (1991)(Future Publishing)(GB)(Disk 1 of 2).adf / Cruncher / Cruncher.DOC < prev    next >
Text File  |  1978-06-19  |  6KB  |  96 lines

  1. August 20, 1988
  2.  
  3.      This is an altered version of Crunch which will not display the annoying
  4. rainbow graphics when run.  Also, when you crunch a file with this version,
  5. the crunched file will run without displaying the rainbow graphics while
  6. uncrunching.  Thanks to Steve Tibbett (author of VirusX, TaskX, ScreenX) for
  7. writing CPatch, a patch that would remove the rainbow from a crunched file,
  8. and to D.J. James (author of Comm1.34) for taking it a step further and
  9. writing CPatch2.0, a patch that would patch the Crunch program itself to
  10. eliminate the rainbow altogether.  I have run D.J.'s patch on Crunch, and the
  11. version included in this archive is the patched version.
  12.  
  13. WARNING:  I did not write this program, just this doc file, which is based on
  14. my own experimentation with Crunch.  Since it is based on just my own
  15. experimentation, and not on any access to or knowledge of the original source
  16. code, everything I say might be wrong :-).  I found it on GEnie, normally an
  17. at least semi-reputable network :-), with no docs at all, nothing in the arc
  18. file but the program, and a short one paragraph description of it before
  19. downloading.  It appears obvious to me that this program was written by one
  20. of the many European pirate groups.  The name "The New Masters", the lack of
  21. docs, and the rainbow graphics (removed from this version - it was very
  22. annoying) are a dead giveaway.  However, this can be a very useful utility,
  23. particularly for those whose Workbench disk is stuffed full of utilities and
  24. can't find room for any more.  Experiment with Crunch; test it thoroughly
  25. before you use it on anything valuable to you.  It works great for me, but
  26. given the ancestry of it I can't guarantee it will not cause you problems. 
  27. Use it only on backup copies.
  28.  
  29.      Crunch is a utility that compresses single programs only, unlike ARC,
  30. ZOO, or PAK, which can compress several files into one archive.  The big
  31. difference is, after compression with Crunch, the program is still an
  32. executable file and does NOT have to be "unarc'd" or uncompressed before
  33. being run.  Like a PAK'd file, you do not need the original compression
  34. program to uncompress a file.  With PAK though, you must first unPAK the
  35. file, and then run the program.  With Crunch, the file uncompresses itself on
  36. the fly and runs exactly like any other executable program, yet takes up much
  37. less space on your disk.  The added time it takes to uncompress itself
  38. varies, but is usually not significant.
  39.      Run Crunch from the CLI.  It brings up its own screen with just three
  40. menu items:  Open, Write, and Quit.  When first started, the Write option is
  41. not available until you Open something and "crunch" it.  Then it can be
  42. written back to disk.  Select Open from the menu, and choose the program you
  43. want to crunch from the file requester that comes up.  The size in bytes of
  44. the file will be displayed as the Source in the list on the left.  The two
  45. large blocks labeled 'Time Control' and 'Speed Control' will graphically show
  46. you what's happening while the file is being crunched.  When finished, the
  47. size of the file after crunching will be displayed as Destination in the list
  48. on the left.  This size, plus the small 680 byte header that is added, equals
  49. the total size which is displayed as All in the list.
  50.      Now you can select Write from the menu.  When the file requester comes
  51. up it should still have the program's name in the string gadget, so you can
  52. just click OK and the newly-crunched, smaller file will be written to disk
  53. and replace the old larger file.  The new, crunched file can still be run
  54. either from the CLI or via Workbench, just like the old one.
  55.      If in the future you want to permanently uncrunch a file that you have
  56. used Crunch on (i.e., return it to its normal size and state), just select
  57. Open from the menu and then choose the file just as you would one that you
  58. wanted to crunch.  Crunch will detect that the file is already crunched, and
  59. will uncrunch it, displaying some graphics while doing so in the large block
  60. labeled 'Uncruncher Control'.  Its size before and after will also be
  61. displayed as Source and Destination on the left.  Then select Write from the
  62. menu and write it back to disk in place of the crunched file.  (Note:  Crunch
  63. itself has been crunched to reduce its size from 11796 bytes to 8592 bytes;
  64. you can uncrunch it if you like.)
  65.  
  66.      I ran into several problems with Crunch.  After crunching and saving to
  67. a disk, the icon for that disk would not go away without rebooting. I got
  68. several gurus in a row when I tried to save the crunched file to a device
  69. other than the one it came from.  You may or may not have these problems too.
  70. When I booted up with a standard unaltered Workbench disk, Crunch seemed to
  71. be less finicky.  There also appear to be some programs that Crunch will not
  72. compress.  Three that I tried that it refused to do were DeluxePaintII,
  73. Sculpt3D, and PhotonPaint.  A message in the 'Status Line' said "bad hunc
  74. structure" and the left mouse button had to be pressed to halt everything.
  75.      Here are some examples from my experiments:
  76.  
  77.      Digi-Paint:  102448 bytes before crunching, 13 seconds to load & run
  78.                    65438 bytes after crunching, 15 seconds to load & run
  79.  
  80.      Preferences:  58868 bytes before crunching, 8 seconds to load & run
  81.                    35124 bytes after crunching, 8 seconds to load & run
  82.  
  83.      PixMate:  109600 bytes before crunching, 17 seconds to load & run
  84.                 81836 bytes after crunching, 26 seconds to load & run
  85.  
  86.      Crunch seemed to also work fine on the few AmigaDOS commands that I
  87. tried it on (Run, NewCli, FastMemFirst).  I'd recommend that you do your own
  88. experimenting on some backup copies, until you see exactly how Crunch works
  89. and are satisfied it will not cause you any problems.
  90.  
  91.      -Joel Salazar
  92.              GEnie: WALRUS
  93.         PeopleLink: WALRUS
  94.         CompuServe: 73557,2347
  95.        QuantumLink: SKYRAT
  96.